package com.example.modulethree.delegate

import android.text.TextUtils
import android.widget.TextView
import com.example.modulethree.R
import com.example.mvp.delegate.BaseAppDelegate

/**
 * Created by sun.li on 2018/6/27.
 * @author sun.li
 */
class KotlinMVPTestActivityDelegate :BaseAppDelegate(){

    override fun initWidget() {
    }

    override fun initLayoutRes(): Int {
        return R.layout.activity_kotlin_test_layout
    }

    fun setText1(str:String?){
        if (!TextUtils.isEmpty(str)) {
            val textView1 = getView<TextView>(R.id.tv_kta_text)
            textView1.text = str
            textView1.setBackgroundResource(R.mipmap.ic_launcher)
        }
    }
}